package org.domain.rescue2011.session;

import org.domain.rescue2011.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("divisionTemporalList")
public class DivisionTemporalList extends EntityQuery<DivisionTemporal> {

	private static final String EJBQL = "select divisionTemporal from DivisionTemporal divisionTemporal";

	private static final String[] RESTRICTIONS = { "lower(divisionTemporal.marcaTemporal) like lower(concat(#{divisionTemporalList.divisionTemporal.marcaTemporal},'%'))", };

	private DivisionTemporal divisionTemporal = new DivisionTemporal();

	public DivisionTemporalList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public DivisionTemporal getDivisionTemporal() {
		return divisionTemporal;
	}
}
